package com.chouren.goandroid.animate.effect;

import android.view.View;

import com.nineoldandroids.animation.ObjectAnimator;

public class ShakeEffect extends BaseEffect {
	@Override
	protected void setAnimators(View view) {
		getAnimatorSet().playTogether(
				ObjectAnimator.ofFloat(view, "translationX", 0, .10f, -25,
						.26f, 25, .42f, -25, .58f, 25, .74f, -25, .90f, 1, 0)
						.setDuration(duration)
		);
	}
}
